<?php
$urlUpload	= ShortUtil::baseUpload('images');
$urlThemes	= ShortUtil::themePath();
$urlHost	= ShortUtil::hostUrl();
?>
<!--- RED PULL TAB -->
<div id="prod-pull">
<div class="top"></div>
<div class="mid">
<div class="main"><a class="directionNav" id="navPrevious"
	style="display: block"><img border="0" alt="Previous"
	src="<?php echo $urlThemes;?>/images/arrow_left.png"></a> <a
	class="directionNav" id="navNext"><img border="0" alt="Next"
	src="<?php echo $urlThemes;?>/images/arrow_right.png"></a>
<div id="see-all"><a id="seeAll"><img
	src="<?php echo $urlThemes;?>/images/btn_see_all.png" alt="See All"
	border="0" /></a></div>
<div id="slideContainer">
<div style="background-image: " id="slideholder">
<div id="reel">
<?php foreach ($objProduct as $product) : ?> <?php $imgExt = json_decode($product->img_extension, true);$imgExt = $imgExt['thumb']?>
<div id="slide_<?php echo $product->prod_id;?>" class="prod">
	<img style="max-height: <?php echo SLIDE_HEIGHT;?>px;" src="<?php echo $urlUpload;?>/<?php echo $product->img_name . IMG_DILIMITER . REFIX_SLIDE . '.' . $imgExt;?>" class="" alt="<?php echo $product->short_desc;?>" title="<?php echo $product->prod_name;?>" />
</div>
<?php endforeach;?></div>
</div>
</div>
<!--THUMB CONTAINER -->
<div id="thumbContainer">
<div class="thumbheader">
<h2>Comdom</h2>
</div>
<?php
$i = 0;
foreach ($objProduct as $product) :
$prodLink	=  ShortUtil::baseUrl() . '/' .  $product->prod_id;
$clearFloat	= ($i % NUM_THUMB == 0) ? 'style="clear:both"' : "";
$imgExt 	= json_decode($product->img_extension, true);
$extThumb 	= $imgExt['thumb'];
$extBox 	= $imgExt['box'];
?>
<div class="product_thumb" <?php echo $clearFloat;?>>
<div id="description" style="display: none;">
<div>
<div class="inner" style="color: 000000;">
<h1><?php echo $product->prod_name;?></h1>
<p class="FacebookLikeButton">
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $prodLink;?>&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;font&amp;colorscheme=light&amp;action=like&amp;height=20&amp;appId=545400302171206" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px;" allowTransparency="true"></iframe>
</p>
<?php echo $product->description;?></div>
</div>
</div>
<a
	href="<?php echo $urlUpload;?>/<?php echo $product->img_name . IMG_DILIMITER . REFIX_BOX . '.' . $extBox;?>"
	class="product-thumb fancybox" rel="group"> <img src="<?php echo $urlUpload;?>/<?php echo $product->img_name . IMG_DILIMITER . REFIX_THUMB . '.' . $extThumb;?>" class="" alt="<?php echo $product->short_desc;?>" title="<?php echo $product->prod_name;?>" />
<span class="tip"> </span> </a></div>
<?php $i++;endforeach;?></div>
<!--END THUMB CONTAINER -->
<div id="nav">
<div id="bar">
<div id="slider"></div>
</div>
</div>
</div>
</div>
<div class="btm"></div>
</div>
<!--END PULL TAB -->

<?php
$i = 0;
foreach ($objProduct as $product) :
$prodLink	=  ShortUtil::baseUrl() . '/' .  $product->prod_id;
$display	= (($i == 0 && $proId == '') || $proId == $product->prod_id) ? 'style="display: block""' : "";
$imgExt 	= json_decode($product->img_extension, true);
$extPro 	= $imgExt['pro'];
$extBox 	= $imgExt['box'];
?>
<div
	class="blockProd" id="prod_<?php echo $product->prod_id;?>"
	<?php echo $display;?>><!--MAIN PRODUCT CONTAINER -->
<div id="mainProd-container">
<div id="mainProd">
<div class="box"><img id="prodShot"
	src="<?php echo $urlUpload;?>/<?php echo $product->img_name . IMG_DILIMITER . REFIX_BOX . '.' . $extBox;?>"
	alt="<?php echo $product->short_desc;?>"
	height="<?php echo BOX_HEIGHT;?>" border="0"
	class="reflect rheight25 ropacity25" /></div>
<div class="condom"><?php if(trim($extPro) != "") : ?> <img
	src="<?php echo $urlUpload;?>/<?php echo $product->img_name . IMG_DILIMITER . REFIX_PROD . '.' . $extPro;?>"
	alt="<?php echo $product->short_desc;?>"
	height="<?php echo PROD_HEIGHT;?>" border="0" /> <?php endif;?></div>
</div>
</div>
<!--END MAIN PRODUCT CONTAINER --> <!--PRODUCT COPY -->
<div id="productInfo">
<?php $imgExt = CJSON::decode($product->img_extension); ?>
<input type="hidden" class="productShortDes" value="<?php echo $product->short_desc;?>" />
<input type="hidden" class="productThumb" value="<?php echo $urlHost;?>/uploads/images/<?php echo $product->img_name . IMG_DILIMITER . REFIX_THUMB . '.' . $imgExt['thumb'];?>" />
<h1 class="productNm"><?php echo $product->prod_name;?></h1>
<p class="FacebookLikeButton">
	<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $prodLink;?>&amp;send=false&amp;layout=standard&amp;width=350&amp;show_faces=true&amp;font&amp;colorscheme=light&amp;action=like&amp;height=20&amp;appId=545400302171206" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true"></iframe>
</p>
<div class="productDescrip">
	<?php echo $product->description;?>
</div>

<div class="tagsLink">Tags <!--<a href="http://www.lifestyles.com/tag/12-count/" rel="tag">12-count</a>,
            <a href="http://www.lifestyles.com/tag/3-count/" rel="tag">3-count</a>, -->
</div>
</div>
</div>
<!--END PRODUCT COPY -->
	<?php $i++;endforeach;?>



